home *** CD-ROM | disk | FTP | other *** search
/ Floppyshop 2 / Floppyshop - 2.zip / Floppyshop - 2.iso / diskmags / 5791-.end / dmg-6260 / articles / sincos.doc < prev    next >
Text File  |  1993-06-01  |  1KB  |  38 lines

  1.                       INTERESTING WAVE PATTERNS
  2.  
  3. In a lot  of  demos,  you  notice  things  like  sinus  dots, or flying
  4. sprites.  These  all  follow  interesting  patterns,  don't  they?  The
  5. professionals already know how to do  these,  but just for those of you
  6. who want to know, there is  a  small  program  on the disk which does a
  7. sinus dot demo for you.
  8.  
  9. Each time you want to  write  a  sprite  path routine, you always start
  10. wondering which combinations of SIN  and  COS produce the best effects.
  11. Well, here are some of my favourites:
  12.  
  13.  
  14. =sin(rad(T*3))*cos(rad(t*2))+sin(rad(T*2)*cos(rad(T)))*80
  15. =sin(rad(T*2))*cos(rad(T))+sin(rad(T*2)*cos(rad(T*3)))*80
  16. =(sin(rad(T*3))*cos(rad(T*2)))*80
  17.  
  18. =90*sin(rad(A*T))*cos(rad(B*T))+100  (A,B,C from 1-31)
  19. =90*sin(rad(A*T))*sin(rad(C*T))+100
  20.  
  21. Try: A=5, B=1, C=1
  22.      A=31, B=27, C=23
  23.      A=5, B=9, C=6
  24.      A=10, B=60, C=20
  25.  
  26. X=100+(sin(T/A))*140  (A,B from 1-76)
  27. Y=50+(cos(T/B))*85
  28.  
  29. Try: A=55, B=11
  30.      A=51, B=23
  31.      A=14, B=15
  32.      A=62, B=14
  33.  
  34. I hope these patterns help  to  provide  you with some more interesting
  35. waves for distorters, dots, sprites, or whatever...
  36.  
  37. Article: BLACK EAGLE 1/6/93
  38.